package JUnitTest;

public class EnCap {
	private String name;
	private int age;
	
	public String getName(){
		return name;
	}
	
	public void setName(String name){
		if (name.length() > 1 && name.length() < 30){
			this.name = name;
		}else this.name = "John Doe";		
	}
	
	public int getAge() {
		return age; 
	}
	
	
	public void setAge(int age) {
		if (age > 18 && age < 99) {
			this.age = age;
		}else this.age = 0;
	}

}
